import request from '@/utils/request'

// 查询采购订单商品列表列表
export function listPurchaseOrderGoods(query) {
  return request({
    url: '/woodPurchase/purchaseOrderGoods/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单商品列表详细
export function getPurchaseOrderGoods(itemId) {
  return request({
    url: '/woodPurchase/purchaseOrderGoods/' + itemId,
    method: 'get'
  })
}

// 新增采购订单商品列表
export function addPurchaseOrderGoods(data) {
  return request({
    url: '/woodPurchase/purchaseOrderGoods',
    method: 'post',
    data: data
  })
}

// 修改采购订单商品列表
export function updatePurchaseOrderGoods(data) {
  return request({
    url: '/woodPurchase/purchaseOrderGoods',
    method: 'put',
    data: data
  })
}

// 删除采购订单商品列表
export function delPurchaseOrderGoods(itemId) {
  return request({
    url: '/woodPurchase/purchaseOrderGoods/' + itemId,
    method: 'delete'
  })
}

// 导出采购订单商品列表
export function exportPurchaseOrderGoods(query) {
  return request({
    url: '/woodPurchase/purchaseOrderGoods/export',
    method: 'get',
    params: query
  })
}